#ifndef Histogram_H_
#define Histogram_H_
#include "FeatureDescriptor.h"
class Histogram : public FeatureDescriptor
{
	public:
	//FeatureDescriptor * hist;
	int		nr_dim;
	int   *	nr_bins;
	int	  * tmp_bin;
	float *	bin_size;
	float *	min;
	int   *	steps;
	Histogram (std::vector<FeatureDescriptor *> * features,std::vector<int> binsizes,std::vector<float> max_val,std::vector<float> min_val);
	void setup(std::vector<FeatureDescriptor *> * features,std::vector<int> binsizes,std::vector<float> max_val,std::vector<float> min_val);
	void insert(FeatureDescriptor * feature);
	void eccAddFinal(int * offset, int dim);
	void eccAdd(int * bin, int ecc ,int dim);
	int bin_index(int * bin);
	~Histogram();
};
#endif
